//
//  UIImage+Utility.h
//  cam
//
//  Created by VIETHUNG on 12/20/13.
//  Copyright (c) 2013 DanielLe. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Utility)
+ (UIImage*)fastImageWithData:(NSData*)data;
+ (UIImage*)fastImageWithContentsOfFile:(NSString*)path;
+ (UIImage*)buildImage:(UIImage*)image workingView:(UIView*)workingView;
+ (UIImage *)capturedView:(UIView*)captureView;

- (UIImage*)deepCopy;

- (UIImage*)resize:(CGSize)size;
- (UIImage*)aspectFit:(CGSize)size;
- (UIImage*)aspectFill:(CGSize)size;
- (UIImage*)aspectFill:(CGSize)size offset:(CGFloat)offset;

- (UIImage*)crop:(CGRect)rect;

- (UIImage*)maskedImage:(UIImage*)maskImage;

- (UIImage*)gaussBlur:(CGFloat)blurLevel;
@end
